package convert;

import java.io.InputStream;

public abstract class AbstractToPdf implements ConvertToPdf {

    protected AbstractToPdf() throws Exception {
        init();
        fontSettings();
    }

    protected abstract void init() throws Exception;

    /**
     * 授权字符串（此处是假数据，jar包已经被破解）
     */
    protected InputStream getLicense() {
        return getClass().getClassLoader().getResourceAsStream("license.xml");
    }

    protected abstract void fontSettings();
}
